home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / cbibcode.arc / SEGREAD.C < prev    next >
Encoding:
C/C++ Source or Header  |  1991-08-05  |  207 b   |  10 lines

  1. /* SEGREAD.C --- p. 657 */
  2. #include <stdio.h>
  3. #include <dos.h>
  4. struct SREGS sr;
  5. main()
  6. {
  7.     segread(&sr);
  8.     printf("Currently cs = %x, ds = %x, es = %x, ss = %x\n",
  9.                     sr.cs, sr.ds, sr.es, sr.ss);
  10. }